import requests
import json

def get():
    data = requests.get("https://sharefanqiang.herokuapp.com/json")
    json_data = data.content.decode("utf-8")
    print(data, json_data)
    return json_data

if __name__ == '__main__':
    with open("data.json", mode = "w") as f:
        f.writh("w")
        pass

get()
